﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Stertex.Service;
using Stertex.Repository;
using www.Stertex.com.Mailers;
using Mvc.Mailer;


namespace Stertex.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewBag.Message = "Welcome to ASP.NET MVC!";

            return View();
        }

        public ActionResult Landing()
        {
            ViewBag.Message = "Welcome to ASP.NET MVC!";

            return View("Landing");
        }
        public ActionResult About()
        {
            ServiceCore<Profile> srv = new ServiceCore<Profile>();
            var profile = new Profile()
            {
                Firstname = "Firsname",
                Lastname = "lastname",
                Email = "samuraitruong@hotmail.com"
            };

            IUserMailer _userMailer = new UserMailer();
            _userMailer.Welcome(profile).Send();
            return View();
        }
    }
}
